package com.fivefu.core.hik.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 海康区域信息表
 * </p>
 *
 * @author 
 * @since 2022-06-30 14:07:20
 */
@TableName("db_hik_regions")
@ApiModel(value = "DbHikRegions对象", description = "海康区域信息表")
public class DbHikRegions {

    @ApiModelProperty("自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("是否删除0否1是")
    private Integer isDelete;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("更新人")
    private String updatedBy;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("区域唯一标识码")
    private String indexCode;

    @ApiModelProperty("区域名称")
    private String name;

    @ApiModelProperty("所属区域路径,以@符号分割")
    private String regionPath;

    @ApiModelProperty("“-1”代表无父区域，其它代表该资源父区域唯一标识码")
    private String parentIndexCode;

    @ApiModelProperty("区域节点是否有权限操作(true：有权限，false：无权限)")
    private Boolean available;

    @ApiModelProperty("区域节点是否叶子节点(true：是，false：否)")
    private Boolean leaf;

    @ApiModelProperty("级联平台标识")
    private String cascadeCode;

    @ApiModelProperty("区域标识")
    private Integer cascadeType;

    @ApiModelProperty("区域类型")
    private String catalogType;

    @ApiModelProperty("外码(如：国际码)")
    private String externalIndexCode;

    @ApiModelProperty("父外码(如：国际码)")
    private String parentExternalIndexCode;

    @ApiModelProperty("同级区域顺序，数据展示按照sort正序排列")
    private Integer sort;

    @ApiModelProperty("本区域资源数量")
    private Integer localQuantity;

    @ApiModelProperty("本区域及下级区域资源数量")
    private Integer totalQuantity;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("更新时间")
    private String updateTime;

    @ApiModelProperty("资源状态，小于0则代表资源已被删除，0代表有效资源")
    private Integer regionStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIndexCode() {
        return indexCode;
    }

    public void setIndexCode(String indexCode) {
        this.indexCode = indexCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegionPath() {
        return regionPath;
    }

    public void setRegionPath(String regionPath) {
        this.regionPath = regionPath;
    }

    public String getParentIndexCode() {
        return parentIndexCode;
    }

    public void setParentIndexCode(String parentIndexCode) {
        this.parentIndexCode = parentIndexCode;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    public String getCascadeCode() {
        return cascadeCode;
    }

    public void setCascadeCode(String cascadeCode) {
        this.cascadeCode = cascadeCode;
    }

    public Integer getCascadeType() {
        return cascadeType;
    }

    public void setCascadeType(Integer cascadeType) {
        this.cascadeType = cascadeType;
    }

    public String getCatalogType() {
        return catalogType;
    }

    public void setCatalogType(String catalogType) {
        this.catalogType = catalogType;
    }

    public String getExternalIndexCode() {
        return externalIndexCode;
    }

    public void setExternalIndexCode(String externalIndexCode) {
        this.externalIndexCode = externalIndexCode;
    }

    public String getParentExternalIndexCode() {
        return parentExternalIndexCode;
    }

    public void setParentExternalIndexCode(String parentExternalIndexCode) {
        this.parentExternalIndexCode = parentExternalIndexCode;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getLocalQuantity() {
        return localQuantity;
    }

    public void setLocalQuantity(Integer localQuantity) {
        this.localQuantity = localQuantity;
    }

    public Integer getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(Integer totalQuantity) {
        this.totalQuantity = totalQuantity;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRegionStatus() {
        return regionStatus;
    }

    public void setRegionStatus(Integer regionStatus) {
        this.regionStatus = regionStatus;
    }

    @Override
    public String toString() {
        return "DbHikRegions{" +
                "id=" + id +
                ", isDelete=" + isDelete +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                ", remark='" + remark + '\'' +
                ", indexCode='" + indexCode + '\'' +
                ", name='" + name + '\'' +
                ", regionPath='" + regionPath + '\'' +
                ", parentIndexCode='" + parentIndexCode + '\'' +
                ", available=" + available +
                ", leaf=" + leaf +
                ", cascadeCode='" + cascadeCode + '\'' +
                ", cascadeType=" + cascadeType +
                ", catalogType=" + catalogType +
                ", externalIndexCode='" + externalIndexCode + '\'' +
                ", parentExternalIndexCode='" + parentExternalIndexCode + '\'' +
                ", sort=" + sort +
                ", localQuantity=" + localQuantity +
                ", totalQuantity=" + totalQuantity +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", regionStatus=" + regionStatus +
                '}';
    }
}
